//
//  PreviewLayer.h
//  BayMaxPuzzle
//
//  Created by Jacky on 15/3/28.
//
//

#ifndef __BayMaxPuzzle__PreviewLayer__
#define __BayMaxPuzzle__PreviewLayer__

#include "cocos2d.h"

class PreviewLayer : public cocos2d::Layer
{
public:
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init(std::string photo, int decorationIndex);
    
    // implement the "static create()" method manually
    static PreviewLayer* create(std::string photo, int decorationIndex);
    
    void initTouchEventlistener();
    
    void destroy();
    
    static bool isExist;
    
private:
    std::string _photoName;
};
#endif /* defined(__BayMaxPuzzle__PreviewLayer__) */
